package com.vdong.trade.trading.common.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by WangGang on 2017/6/22 0022.
 * E-mail userbean@outlook.com
 * The final interpretation of this procedure is owned by the author
 */
public enum ProcessExceptionEnum {
    EB00000000("EB00000000", "流水号不存在"),
    EBXXXXXXXX("EBXXXXXXXX", "测试异常"),
    EB00000001("EB00000001", "插入交易流水失败"),
    EB00000002("EB00000002", "查询不到此订单号对应的订单"),
    EB00000003("EB00000003", "找不到这个用户对应的资金账户"),
    EB00000004("EB00000004", "资金更新失败"),
    EB00000005("EB00000005", "查询对象失败"),

    EB00000008("EB00000008", "传入参数有误"),
    EB00000009("EB00000009", "提现金额不能<=0!"),
    EB000000010("EB000000010", "提现失败!"),
    EB000000011("EB000000011", "更新交易流水失败!"),
    EB000000012("EB000000012", "插入交易流水失败!"),
    ;


    // 成员变量
    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String message;

    // 构造方法
    private ProcessExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;

    }
}
